package openfl.events;

#if (display || !flash)
import haxe.io.Error;

@:jsRequire("openfl/events/AsyncErrorEvent", "default")
extern class AsyncErrorEvent extends ErrorEvent
{
	public static inline var ASYNC_ERROR = "asyncError";
	public var error:Error;
	public function new(type:String, bubbles:Bool = false, cancelable:Bool = false, text:String = "", error:Error = null);
}
#else
typedef AsyncErrorEvent = flash.events.AsyncErrorEvent;
#end
